import express from 'express'
import shop from '../controller/business/shop'
import food from '../controller/business/food'
import category from '../controller/business/category'
// import Admin from "../controller/admin/admin";
import check from '../middleWare/check'
var router = express.Router();
router.get('/addShop',check.checkEdit,shop.addShop)
router.get('/getAllShop',shop.getAllShop)
router.get('/addFood',food.addFood)
router.get('/getAllFood',food.getAllFood)
router.get('/deleteFood',check.checkEdit,food.deleteFood)
router.get('/getAllCategory',category.getAllCategory)
router.post('/updateShop',shop.updateShop)
router.get("/addCategory",food.addCategory)
router.get("/addCategory1",food.addCategory1)
router.get("/getFoodCategory",food.getFoodCategory)
router.get('/updateFood',food.updateFood)
router.get('/deleteShop',check.checkEdit,shop.deleteShop)
export default router
